﻿using Microsoft.AspNetCore.Mvc;
using StackExchange.Redis;

namespace redis_microservice.Controllers
{
    [Route("api/[controller]/[action]")]
    [ApiController]
    public class BaseController(IConnectionMultiplexer connection) : ControllerBase
    {
        protected readonly IDatabase _db0 = connection.GetDatabase(0);
    }
}
